<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <% String contextPath = request.getContextPath(); 
    request.setAttribute("contextPath", contextPath);%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>登录</title>

    <!-- Bootstrap Core CSS -->
    <link href="${contextPath}/css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="${contextPath}/css/metisMenu.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="${contextPath}/css/sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="${contextPath}/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="${contextPath}/css/common.css" rel="stylesheet" type="text/css">

</head>

<body>

    <div class="container">
        <div class="row">
            <div class="col-md-4 col-md-offset-4">
                <div class="login-panel panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">彩票后台管理系统<p><font color="red">${message}</font></p></h3>
                    </div>
                    <div class="panel-body">
                        <form action="${contextPath}/Weblogin"  method="post" id="Onsubmit" name="form1">
                            <fieldset>
                                <div class="form-group">
                                    <input class="form-control"  id="account" placeholder="请输入用户名" name="account" type="text" autofocus>
                                </div>
                                <div class="form-group">
                                    <input class="form-control"  id="password" placeholder="请输入密码" name="password" type="password" >
                                </div>
                                <!-- Change this to a button or input when using this as a form -->
                                <button type="submit" class="btn btn-lg btn-success btn-block">登录</button>
                            </fieldset>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- jQuery -->
    <script src="${contextPath}/js/jquery.min.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="${contextPath}/js/bootstrap.min.js"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="${contextPath}/js/metisMenu.min.js"></script>

    <!-- Custom Theme JavaScript -->
    <script src="${contextPath}/js/sb-admin-2.min.js"></script>

<script type="text/javascript">
	//提示信息封装函数
	function notice(notice) {
	    var str = '';
	    str += '<div class="popupTip">';
	    str += notice;
	    str += '<span class="glyphicon glyphicon-remove"></span>';
	    str += '</div>';
	    str += '</strong></div>';
	    //wrapper插入str
	    $(".container").append(str);
	}
	
	//取消提示框
	$(".container").on('click', '.glyphicon-remove', function() {
	    $(".popupTip").hide();
	});

	
	/* function login() {
		var account = $('#username').val();
		var password = $('#password').val();
		$.ajax({
	  	    type: "POST",
	  	    url: "/CrazyLottery_1.0.0v/login",
	  	    dataType:'json', 
	  	    contentType: "application/json;charset=utf-8",
	  	    data: "{\"account\":\""+account+"\",\"password\":\""+password+"\"}",
	  	    success: function(data){
	  	      if(data.status != 1){
	  	    	    window.location.href = "/CrazyLottery_1.0.0v/setup/personInformation";
				}else{
					notice(data.message);
				}
	  	    }
	  	});
	} */
	
	


	


</script>
</body>


</html>
